{extend name='admin@main'}

{block name="content"}
<div class="think-box-shadow">
    {include file='personal/index_search'}
    <table class="layui-table" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='text-left nowrap'>客户名称</th>
            <th class='text-left nowrap'>联系人</th>
            <th class='text-left nowrap'>联系手机</th>
            <th class='text-center nowrap'>工单等级</th>
            <th class='text-left nowrap'>工单分类</th>
            <th class='text-left nowrap'>工单标题</th>
            <th class='text-left nowrap'>工单状态</th>
            <th class='text-left nowrap'>备注</th>
            <th class='text-left nowrap'>工单日期</th>
            <th class='text-left nowrap'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.work_id}' type='checkbox'></label>
            </td>
            <td class='text-left nowrap'>
                {$Think.config.customer[$vo.customer]}
            </td>
            <td class='text-left nowrap'>{$vo.contact_people|default='-'}</td>
            <td class='text-left nowrap'>{$vo.customer_phone|default='-'}</td>
            <td class='text-center nowrap'>
                {$Think.config.case_grade[$vo.grade]}
            </td>
            <td class='text-left nowrap'>
                {$Think.config.case_category[$vo.categroy]}
            </td>
            <td class='text-left nowrap'>{$vo.work_desc}</td>
            <td class='text-left nowrap'>
                {if $vo.work_status eq 0}
                <span class="layui-badge">未解决</span>
                {/if}
                {if $vo.work_status eq 1}
                <span class="layui-badge layui-bg-orange">延期</span>
                {/if}
                {if $vo.work_status eq 2}
                <span class="layui-badge layui-bg-blue">已解决</span>
                {/if}
            </td>
            <td class='text-left nowrap'>{$vo.remark}</td>
            <td class='text-left nowrap'>{$vo.work_start}</td>
            <td class='text-left nowrap'>
                <a class="layui-btn layui-btn-sm layui-bg-cyan" data-open='{:url("info")}?work_id={$vo.work_id}' data-csrf="{:systoken('state')}">查看</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>

{/block}
